package com.hxci.hospital.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hospital")
public class MainController {

    // 医院首页
    @RequestMapping("/index")
    public String index() {
        return "hospital/index";
    }

    // 默认路由重定向到首页
    @RequestMapping("")
    public String home() {
        return "redirect:/hospital/index";
    }
}
